/* $Id: DJudgeGWTAdminService.java 137 2011-08-29 20:33:36Z altdotua@gmail.com $ */

package alt.djudge.frontend.client.rpc;

import alt.djudge.frontend.shared.dto.admin.AdminDTOEntry;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;


@RemoteServiceRelativePath("djudge-gwt-admin")
public interface DJudgeGWTAdminService extends RemoteService
{
	final int FIELD_ACTIVE = 1;
	
	final int FIELD_VISIBLE = 2;
	
	final int FIELD_DELETED = 3;
	
	AdminDTOEntry copyEntry(AdminDTOEntry dtoEntry);
	
	AdminDTOEntry editEntry(AdminDTOEntry dtoEntry);
	
	AdminDTOEntry createEntry(AdminDTOEntry dtoEntry);
	
	AdminDTOEntry[] getEntries(String className, int page);
	
	boolean setEntryField(String className, long entryId, int field, boolean value);
}
